﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WP8_PPS.Services
{
    /// <summary>
    /// Static Library of Services
    /// </summary>
    public static class ServiceLocator
    {
        private static GeolocatorService _geolocatorService;
        public static GeolocatorService GeolocatorService
        {
            get { return ServiceLocator._geolocatorService ?? (ServiceLocator._geolocatorService = new GeolocatorService()); }
        }

        private static WebService _webService;
        public static WebService WebService
        {
            get { return ServiceLocator._webService ?? (ServiceLocator._webService = new WebService()); }
        }
    }
}
